if __name__ == "__main__":
    principal = float(input("初始投入本金："))
    for rate in range(1, 31, 1):
        print("当投资收益率为%2d%%时，最终资产为：%.2f"%(rate, principal * pow(1 + rate / 100, 30)))